package com.summer.main;

public class TypeTest {
	
	public static void main(String[] args) {
		
		int a = (int)10.1;
		float b = 10.1f;
		char c = 'g';
		int cc = 'a';
		char ccc = (char)97;
		boolean is = true;
		String msg = "对不起";
		
		System.out.println("a==="+a);
		System.out.println("b==="+b);
		System.out.println("c==="+c);
		System.out.println("cc==="+cc);
		System.out.println("ccc==="+ccc);
		if(is)
			System.out.println("泉小泉在干嘛");
		System.out.println(msg);
		
		System.out.println(TypeTest.class.getName());
		System.out.println(TypeTest.class.getSimpleName());
		System.out.println(TypeTest.class.getCanonicalName());
		System.out.println(TypeTest.class.getTypeName());
		System.out.println("======================================================");
		System.out.println(int.class.getName());
		System.out.println(int.class.getSimpleName());
		System.out.println(int.class.getCanonicalName());
		System.out.println(int.class.getTypeName());
		System.out.println("======================================================");
		System.out.println(int[].class.getName());
		System.out.println(int[].class.getSimpleName());
		System.out.println(int[].class.getCanonicalName());
		System.out.println(int[].class.getTypeName());
		System.out.println("======================================================");
		System.out.println(Integer.class.getName());
		System.out.println(Integer.class.getSimpleName());
		System.out.println(Integer.class.getCanonicalName());
		System.out.println(Integer.class.getTypeName());
		System.out.println(Integer.class.getComponentType());
		System.out.println("======================================================");
		System.out.println(Integer[].class.getName());
		System.out.println(Integer[].class.getSimpleName());
		System.out.println(Integer[].class.getCanonicalName());
		System.out.println(Integer[].class.getTypeName());
		System.out.println(Integer[].class.getComponentType());
		System.out.println("======================================================");
		
		int aaa1 = 0x0010;
		int aaa2 = 0x0100;
		int aaa3 = 0x1000;

		System.out.println(aaa1);
		System.out.println(aaa2);
		System.out.println(aaa3);
		System.out.println("======================================================");
		System.out.println((aaa3 | aaa1) + "===" + ((aaa3 | aaa1) & ~aaa1));
		System.out.println((aaa3 | aaa2) + "===" + ((aaa3 | aaa2) & ~aaa1));
		System.out.println((aaa2 | aaa1) + "===" + ((aaa2 | aaa1) & ~aaa1));
//		modifiers = modifiers & ~Modifier.ABSTRACT;
	}
	
	

}
